function b {
    find xts_acts_arkts1.2 -type d -name "hvigor"  | xargs dirname | sort | uniq | while read -r pj ; do
    mkdir -p "out/hap/$pj";
    test="$(pwd)/$pj" 
    echo --project value is : $test
    echo --out-path value is : "$(pwd)/out/hap/$pj"
    applications/standard/hap/build.sh --build_sdk=true --project="$(pwd)/$pj" --out_path="$(pwd)/out/hap/$pj"; 
    done
}
b